[TOOLS] Fix typos which breaks readnotes transparent gunzipping ...
authorEmmanuel Ackaouy <ack@xensource.com>
Wed, 31 Jan 2007 15:23:51 +0000 (15:23 +0000)
committerEmmanuel Ackaouy <ack@xensource.com>
Wed, 31 Jan 2007 15:23:51 +0000 (15:23 +0000)
From: Gerd Hoffmann <kraxel@suse.de>
Signed-off-by: Emmanuel Ackaouy <ack@xensource.com>
tools/xcutils/readnotes.c

index fac684014a4433886231f94eb3dce60ab2cf4d74..f3e412da4e2bd3cd4d4e0eb048598f5bc013568d 100644 (file)
@@ -72,8 +72,8 @@ int main(int argc, char **argv)
        usize = xc_dom_check_gzip(image, st.st_size);
        if (usize)
        {
-               tmp = malloc(size);
-               xc_dom_do_gunzip(image, st.st_size, tmp, size);
+               tmp = malloc(usize);
+               xc_dom_do_gunzip(image, st.st_size, tmp, usize);
                image = tmp;
                size = usize;
        }